﻿import request from '@/utils/request';
// list
export const xueshengList = (params) => {
    return request({
        url: '/xuesheng/page',
        method: 'post',
        data: params,
    })
};
export const xueshengDetail = (id) => {
    return request({
        url: '/xuesheng/'+id,
        method: 'get',
    })
};
// add
export const xueshengSave = (params) => {
    return request({
        url: '/xuesheng',
        method: 'post',
        data: params,
    })
};
// updt
export const xueshengEdit = (params) => {
    return request({
        url: '/xuesheng',
        method: 'put',
        data: params,
    })
};
// delete
export const xueshengDelete = (id) => {
    return request({
        url: '/xuesheng/'+id,
        method: 'delete',
    })
};
// pldel
export const xueshengDeleteList = (xueshengs) => {
    return request({
        url: '/xuesheng/deleteList',
        data:{list:xueshengs},
        method: 'post',
    })
};
// all
export const xueshengAllList = () => {
    return request({
        url: '/xuesheng',
        method: 'get',
    })
};
export const xueshengUpdatePassword = (params) =>{ return request({ url: `/xuesheng/updatePassword`, method: 'put',data: {...params,mima:params.password}, })};
export const xuesheng_tj_yuanxi = () => {return request({url: '/xuesheng/xuesheng_tj_yuanxi',method: 'get',})};export const xuesheng_tj_banji = () => {return request({url: '/xuesheng/xuesheng_tj_banji',method: 'get',})};